<#include "/common/header.html" >

<body class=" gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-content">
                        <div class="row m-b">
                    		<div class="col-sm-5">
                    		</div>
                           <form action="list" class="form-horizontal" id="searchForm">
                            	<div class="col-sm-7">
	                                <div class="input-group">
	                                    <input type="text" placeholder="" name="cateName" class="input-m form-control" value=""> <span class="input-group-btn"> <span class="input-group-btn">
	                                        <button type="submit" class="btn btn-m btn-primary"> 搜索</button> </span>
	                                </div>
                            	</div>
                    	    </form>
                        </div>
                        <div class="clients-list">
                            <div class="full-height-scroll">
                                <div class="table-responsive">
                                    <table class="table table-striped table-hover">
	                                    <tr>
	                                    	<th></th>
	                                    	<th>用户名称</th>
	                                    	<th>操作</th>
	                                    </tr>
	                                    <#list pageInfo.records as u>
                                    		 <tr>
		                                    	<td></td>
		                                    	<td>${u.username}</td>
		                                    	<td>
		                                    		<a href="/sys/user/getPressm/${u.userId}" class="cate-upd"><span class="label label-primary">授权</span></a>
	                                         		<!-- <a href="/sys/cates/del/${u.id}" class="cate-del"><span class="label label-warning">删除</span></a> -->
		                                    	</td>
		                                    </tr>
	                                    </#list>
                                    </table>
                                    <#include "/common/rollpage.html" >
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <#include "/common/footer.html" >
    <script type="text/javascript">
    	$(function(){
    		$(".cate-del").click(function(){
    			var _this = $(this);
    			
    			$.ajax({
    				url:_this.attr("href"),
    				type:"GET",
    				dataType:"JSON",
    				success:function(data){
    					wxLayer.alert(data.message,function(){
    						if(data.status)
    							goPage("${pageInfo.current}");
    					});
    				},
					error:function(data){
						wxLayer.alert(data.responseJSON.message);
    				}
    			})
    			return false;
    		})
    	})
    </script>
</body>
</html>
